//
//  CalendarGridView.swift
//  Kosspot
//
//  Created by 李鑫 on 2025/7/18.
//

import SwiftUI

struct CalendarGridView: View {
   @Binding var selectedDate: Date
   @Binding var cycleDays: [Date: CycleDay]
   private let columns = Array(repeating: GridItem(), count: 7)
   
   var body: some View {
       VStack {}
//       LazyVGrid(columns: columns, spacing: 10) {
//           ForEach(weekdaySymbols, id: \.self) { symbol in
//               Text(symbol.prefix(1))
//           }
//           ForEach(daysInMonth(), id: \.self) { date in
//               DayCellView(date: date,
//                         cycleDay: cycleDays[date],
//                         isSelected: calendar.isDate(date, inSameDayAs: selectedDate))
//                   .onTapGesture { selectedDate = date }
//           }
//       }
   }
   
//   private var weekdaySymbols: [String] {
//       calendar.veryShortWeekdaySymbols
//   }
//   
//   private func daysInMonth() -> [Date] {
//       // 实现参考^^2^^中的日期计算方法
//   }
}
